-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do a full reformat when ^L
/^R
redrawing.
#107
Conversation
Doesn't sound too useful? A quicker workaround for #104 might be Ctrl-C. |
That works only if you are still inputting the command, on the command input line. If you have exited without interrupting, such as backspacing out of the command input, the screen remains corrupted then cannot be recovered with This patch is more a "fix" that is compatible with my muscle memory, and I think it is closer to the POSIX standard. The short description from the POSIX-derived man page states that
Nvi has no full open mode. Also, Nvi has never actually "cleared the screen" directly, leaving the decision up to curses, however, the standard also doesn't directly specify if the screen should actually be fully repainted (which I think it should, as that is what the clear implies) or just redrawn (as is, even if it was wrong). Using |
If that's your muscle memory, then you can simply
(See also |
|
NOTE: The Hopefully this is helpful. |
2022-02-26.22-11-34.mp4I think the only problem is that it will move the current line to the top... |
Ah, yes, right you are. But moving the screen is still a problem. This is something I'd most likely never have noticed outside of the context of #104 ... I'll take a look into that tomorrow, unless you beat me to it, as it's getting late here on the east coast. But, I see you merged, so thanks very much for the quick response on these. Nvi2 is the most awesome nvi yet. |
See issue #104 - adding a new step of "inputting four or five backspaces" to exit the command input leaves the screen in a state where
^L
or^R
will not correct corruption until a reformat (:set nonum|set num
, etc).This is possible in other situations as well.
This ensures the screen is always reformatted and redrawn on
^L
or^R
.